<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<title>XDOC Server</title>
	</head>
	<body>
		<h1>欢迎使用XDOC</h1>
		<h2>XDOC文本</h2>
		<hr/>
		<form action="xdoc" method="post" target="_blank">
			<textarea id="_xdoc" name="_xdoc" rows="10" style="width:100%"></textarea>
			<input type="submit" value="生成PDF"/>&nbsp;&nbsp;<a href="xdoc.pdf" target="_blank">XDOC规范</a> | <a href="http://myxdoc.sohuapps.com" target="_blank">更多&gt;&gt;</a>
		</form>
		<br/>
		<h2>模板示例</h2>
		<hr/>
		<div><span style="color:#000000;">&lt;!DOCTYPE&nbsp;html&gt;</span></div>
		<div><span style="color:#3f7f5f;">&lt;html</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">lang</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"zh-cn"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">style</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"height:100%"</span><span style="color:#3f7f5f;">&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;head&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;meta</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">charset</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"utf-8"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">/&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;title&gt;</span><span style="color:#000000;">XDOC</span><span style="color:#3f7f5f;">&lt;/title&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;script</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">type</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"text/javascript"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">src</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"http://localhost:8080/xdoc/xdoc.js"</span><span style="color:#3f7f5f;">&gt;&lt;/script&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/head&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;body</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">style</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"margin:0px;overflow:hidden;height:100%"</span><span style="color:#3f7f5f;">&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;script</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">type</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"text/xdoc"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">_format</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"pdf"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">style</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"width:100%;height:100%"</span><span style="color:#3f7f5f;">&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;xdoc&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;body&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;para</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">heading</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"1"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">lineSpacing</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"28"</span><span style="color:#3f7f5f;">&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;text</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">valign</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"center"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">fontName</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"标宋"</span><span style="color:#000000;">&nbsp;</span><span style="color:#3f7f5f;">fontSize</span><span style="color:#000000;">=</span><span style="color:#2a00ff;">"29"</span><span style="color:#3f7f5f;">&gt;</span><span style="color:#000000;">欢迎使用XDOC!</span><span style="color:#3f7f5f;">&lt;/text&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/para&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/body&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/xdoc&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/script&gt;</span></div>
		<div><span style="color:#000000;">&nbsp;&nbsp;</span><span style="color:#3f7f5f;">&lt;/body&gt;</span></div>
		<div><span style="color:#3f7f5f;">&lt;/html&gt;</span></div>
		<script id="xdoc" type="text/xml"><xdoc version="A.3.3">
  <body>
    <para heading="1" lineSpacing="28">
      <text valign="center" fontName="标宋" fontSize="29">欢迎使用XDOC!</text>
    </para>
  </body>
</xdoc></script>
		<script type="text/javascript">
		document.getElementById("_xdoc").value = document.getElementById("xdoc").innerHTML;
		</script>
	</body>
</html>
